package com.yanqu.road.server.cmd.cookboy.process2;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.cookboy.CookBoyProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.cookboy.CrossCookBoyMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

import java.util.List;

@Cmd(code = CrossProtocol.C_CROSS_COOK_BOY2_FROBID_SPOON,desc = "")
public class CrossForbidSpoonCmd extends CrossCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        CookBoyProto.CookBoy2ForbidSpoonReqMsg reqMsg = CookBoyProto.CookBoy2ForbidSpoonReqMsg.parseFrom(packet.getBytes());
        int activityId = reqMsg.getActivityId();
        List<Integer> spoonIdList = reqMsg.getSpoonIdList();
        CrossCookBoyMgr.forbidSpoon(activityId,serverId,packet.getPlayerId(),spoonIdList);
    }

    @Override
    public void sendData() {

    }
}
